#include <bits/stdc++.h>
using namespace std;
#include "LexicalAnalyzer.h"
#include "SyntaxAnalyzer.h"
vector<string> sym,label;

int main() {
//    freopen("test.in","r",stdin);
    freopen("program.code","w",stdout);
    if (!LexicalAnalyzer(sym,label)){
        return -1;
    }
    if (!SyntaxAnalyzer(sym,label)){
        cout<<"Syntax Error"<<endl;
        return -1;
    }


    return 0;
}
